package com.zhengyisky.controller;

import com.zhengyisky.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/getUserInfo/{phone}")
    public Map getUserInfo(@PathVariable String phone){
        return userService.getUserInfo(phone);
    }
}
